package dimension.starry.utils;

import net.minecraft.util.math.random.Random;

import java.security.SecureRandom;

public class RandomUtil {

    private static final SecureRandom SECURE_RANDOM = new SecureRandom();
    private static final Random RANDOM = Random.create();

    public static int randomInt(int start, int end) {
        return SECURE_RANDOM.nextInt(end - 1) + start;
    }

    public static Random getRandom() {
        return RANDOM;
    }

}
